#ifndef POWER_BOARD_H
#define POWER_BOARD_H

#include <QWidget>

#define C_num 100;    //电流量程
#define V_num 103;    //电压量程
typedef struct
{
    float V_CH1;
    float V_CH2;
    float V_CH3;
    float V_CH4;
    float C_CH1;
    float C_CH2;
    float C_CH3;
    float C_CH4;
    float C_CH5;
    float C_CH6;
    float C_CH7;
    float C_CH8;
    float P_CH1;
    float P_CH2;
    float P_CH3;
    float P_CH4;
}Power_struct;

extern Power_struct powerdata;

namespace Ui {
class Power_board;
}

class Power_board : public QWidget
{
    Q_OBJECT

public:
    explicit Power_board(QWidget *parent = nullptr);
    ~Power_board();
    void show_power(void);
    void saveToCSV();
private slots:
    void on_new_file_clicked();

private:
    Ui::Power_board *ui;

};


extern Power_board *power_board;


#endif // POWER_BOARD_H
